<?xml version="1.0" encoding="ISO-8859-1" ?>
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"	
	xmlns:p="http://primefaces.org/ui" >
	<h:head>
		<h:outputStylesheet name="reset.css" library="css" />
		<h:outputStylesheet name="estrutura_login.css" library="css" />
		<title>#{msg['sistema']}</title>
	</h:head>
	<h:body>
	<!-- 	<div id="teste_header">Base de Dados para Testes</div> -->
	
		<p:ajaxStatus id="load_login">
		    <f:facet name="start">  
		        <h:graphicImage library="images" name="ajax-loader.gif" alt="carregando" />  
		    </f:facet>
		    <f:facet name="complete">
		    	<h:outputText value="" />
		    </f:facet> 
		</p:ajaxStatus> 

		<div id="container_empresa">
	    	<div id="box_empresa">
				<h:form id="formEmpresa">
				<p:growl id="msgs" showSummary="false" showDetail="true"/>
				
						<h:outputLabel value="#{loggedUser.usua.usuanome}" style="font-weight: bold" />
						<h:outputLabel value=", Seja bem vindo!"/>
						<br/>
						<h:outputLabel value="Escolha a empresa e clique em 'Acessar'" />
						<br/>
						<br/>
						<p:selectOneMenu id="empr" value="#{loginBean.empr.emprcodigo}" converter="genericConverter" style="width: 250px;" immediate="true">
							<f:selectItem itemLabel="#{msg['label.select']}" itemValue="" />
							<f:selectItems value="#{loginBean.comboEmpr}" var="empr" itemLabel="#{empr.emprnome}" itemValue="#{empr.emprcodigo}" />
						</p:selectOneMenu>
						<br/>
						<br/>
						<p:commandButton value="Acessar" action="#{loginBean.loginEmpr}" ajax="false" icon="ui-icon-check"/>
						<p:commandButton value="Sair" action="#{loginBean.logout}" immediate="true"/>
	        	</h:form> 
	   	  	</div>
	    </div>
	</h:body>
</html>  

